import { createRouter, createWebHashHistory } from 'vue-router'
import LoginPageVue from '@/page/LoginPage.vue'
import HomePageVue from '@/page/HomePage.vue'
import HolidayQueryPageVue from '@/page/HolidayQueryPage.vue'
import EmplInfoPage from '@/page/EmplImportPage.vue'
import HolidayQueryOrgPageVue from '@/page/HolidayQueryOrgPage.vue'
import LeavePage from '@/page/LeavePage.vue';

const router = createRouter({
  history: createWebHashHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'login',
      component: LoginPageVue
    }, {
      path: '/home',
      component: HomePageVue,
      children: [
        {
          path: '/holidayquery',
          component: HolidayQueryPageVue
        }, {
          path: '/import',
          component: EmplInfoPage,
        }, {
          path: '/holidayorg',
          component: HolidayQueryOrgPageVue,
        }, {
          path: '/leave',
          component: LeavePage,
        }
      ]
    },
  ]
})

export default router
